package com.example.springbootaop.controller;

import com.example.springbootaop.pojo.MyEntity;
import com.example.springbootaop.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

/**
 * @description 第三方授权登录
 * @author LGY
 * @date 2023/04/11 18:57
 * @version 1.0.0
 */
@RestController
public class TestController {

    @Autowired
    private DemoService demoService;

    @PostMapping("/test")
    public void login(@RequestBody MyEntity myEntity) throws IOException {

        demoService.divide(1, 2);
        demoService.add(3, 4);
    }




}